package client.comm.commlib.widget

import android.content.Context
import android.util.AttributeSet
import android.view.View
import client.comm.commlib.R

class TabView @JvmOverloads constructor(
    context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : View(context, attrs, defStyleAttr) {

    override fun setSelected(selected: Boolean) {
        super.setSelected(selected)
        if (selected) {
            setBackgroundColor(resources!!.getColor(R.color.FontBlue))
        } else {
            background = null
        }
    }
}